<?php defined('ByShopWWI') or exit('Access Invalid!');?>



<div id="member_center_box" class="ncm-index-container">
  <div class="user-account">
    <dl class="account01">
      
      <dt>账户余额</dt>
      <dd class="icon"></dd>
      <dd class="value">￥<em style="color:#F00"><?php echo $output['member_info']['available_predeposit'];?></em></dd>
     
    </dl>
    <dl class="account01">
     
      <dt>股权分红总额</dt>
      <dd class="icon"></dd>
      <dd class="value">￥<em style="color:#F00"><?php echo $output['member_info']['stock_right_amount'];?></em></dd>
    
    </dl>
   
    
    <dl class="account06">
     
      <dt>可用消费豆</dt>
      <dd class="icon"></dd>
      <dd class="value"><em style="color:#F00"><?php echo $output['member_info']['member_consume_bean'];?></em></dd>
     
    </dl>
    <dl class="account06">
    
      <dt>可用分红豆</dt>
      <dd class="icon"></dd>
      <dd class="value"><em style="color:#F00"><?php echo $output['member_info']['member_share_bean'];?></em></dd>
    
    </dl>
<?php /*?>    <dl class="account07">       暂时关闭
      <a href="<?php echo urlMember('kucun_store_points');?>" title="查看我的库存积分">
      <dt>商家库存积分</dt>
      <dd class="icon"></dd>
      <dd class="value"><em><?php echo $output['member_info']['kucun_points'];?></em></dd>
      </a>
    </dl>
    
    <dl class="account03">
      <a href="<?php echo urlMember('member_voucher');?>" title="查看我的代金券">
      <dt>店铺代金券</dt>
      <dd class="icon"></dd>
      <dd class="value"><em><?php echo $output['member_info']['voucher_count']?$output['member_info']['voucher_count']:0;?></em>张</dd>
      </a>
    </dl>
    <dl class="account04">
      <a href="<?php echo urlMember('member_redpacket');?>">
      <dt>平台红包</dt>
      <dd class="icon"></dd>
      <dd class="value"><em><?php echo $output['member_info']['redpacket_count']?$output['member_info']['redpacket_count']:0;?></em>个</dd>
      </a>

    </dl><?php */?>
  </div>
  
  
  <div class="user-consume">
  <div class="title"><h3>我的消费</h3> <a href="<?php echo urlMember('consume');?>">查看所有记录</a></div>

  <table class="ncm-default-table">

    <thead>

      <tr>

        <th class="w10"></th>

        <th class="w150 tl">记录时间</th>

        <th class="w150 tl">金额</th>

        <th class="tl">备注</th>

      </tr>

    </thead>

    <tbody>

      <?php  if (!empty($output['consume_list'])) { ?>

      <?php foreach($output['consume_list'] as $val) { ?>

      <tr class="bd-line">

        <td></td>

        <td class="w150 tl"><?php echo date('Y-m-d H:i:s', $val['consume_time']);?></td>

        <td class="w150 tl">&yen; <?php echo ncPriceFormat($val['consume_amount'])?></td>

        <td class="tl"><?php echo $val['consume_remark'];?></td>

      </tr>

      <?php } ?>

      <?php } else {?>

      <tr>

        <td colspan="20" class="norecord"><div class="warning-option"><span>最近您没有任何消费记录</span></div></td>

      </tr>

      <?php } ?>

    </tbody>

   

  </table></div>

</div>

